import { getAction,deleteAction,putAction,postAction} from '@/api/manage'

////根路径
// const doMian = "/jantd-boot/";
////图片预览请求地址
// const imgView = "http://localhost:8080/jantd-boot/sys/common/view/";

//
// 团队管理
const addTeam= (params)=>postAction("/sys/team/add",params);
const editTeam= (params)=>putAction("/sys/team/edit",params);
const teamall = (params)=>getAction("/sys/team/teamall",params);
const userall = (params)=>getAction("/sys/team/userall",params);
const getTeamList = (params) => getAction("/sys/team/list", params);
const addTeamrole= (params)=>postAction("/sys/team/addTeamrole",params);
/*查询全部角色信息*/
const roleNameAll = (params) => getAction("/sys/team/roleNameAll", params);
const getRolenameList = (params) => getAction("/sys/team/getRolenameList", params);
const queryTeamRole = (params) => getAction("/sys/team/queryTeamRole", params);
const queryTeamUser = (params) => getAction("/sys/team/queryTeamUser", params);
// 重复校验
const duplicateCheck = (params)=>getAction("/sys/duplicate/check",params);
export {
  addTeam,
  editTeam,
  duplicateCheck,
  teamall,
  userall,
  addTeamrole,
  queryTeamRole,
  getRolenameList,
  getTeamList,
  roleNameAll,
  queryTeamUser
}



